﻿using System;

namespace Fjaspx.UI.Web.Administrator.NewHtml
{
    public partial class New : AdminPage
    {
        /// <summary>
        /// 
        /// </summary>
        Fjaspx.Templet.NewIndex NewIndex = new Fjaspx.Templet.NewIndex();
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    if (NewIndex.NewHtml()) { Response.Write("<center><h3>生成首页成功！</h3></center>"); }
                }
                catch { Response.Write("<center><h3>生成首页错误！</h3></center>"); }
            }
        }
    }
}
